//
//  SEGPublishHelpViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/10.
//

#import <Foundation/Foundation.h>
#import "ReactiveObjC.h"

NS_ASSUME_NONNULL_BEGIN

/**
 发布类型
 */
typedef NS_ENUM(NSUInteger, SEGPublishHelpType) {
    SEGPublishHelpType_Help = 0, /*求助（包括老帮帮发布）*/
    SEGPublishHelpType_Chat = 1, /*聊一聊*/
    SEGPublishHelpType_AttendTopic = 2, /*参与话题*/
    SEGPublishHelpType_OldOtherHelp = 3, /*老帮帮发布里的其他类型*/
};

@interface SEGPublishHelpViewModel : NSObject
/**
 发布类型
 */
@property (nonatomic, assign) SEGPublishHelpType type;

@property (nonatomic,retain) NSDictionary  *tempDict; //接收数值

/**
 保存图片的数组
 */
@property (nonatomic, strong)NSMutableArray *savePicArray;

/**
 保存上传图片后的URL数组
 */
@property (nonatomic, strong)NSMutableArray *saveUrlArray;


/**
 是否已上传
 */
@property (nonatomic, assign) BOOL hasSubmit;

@property (nonatomic,strong) NSMutableDictionary *saveDict;  //数据保存与传值(求助和聊一聊)


/**
 话题标签
 */
@property (nonatomic, copy) NSString *linkTitleStr;

@property (nonatomic, strong) NSString *describeViewString;

- (void)initData;

- (RACSignal *)submitRequest;

- (RACSignal *)checkSubmitParams;
@end

NS_ASSUME_NONNULL_END
